Mark paper sizes in the PWG "custom" namespace as custom. Add a link to
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Apr 2007 00:19:19 +0000 (00:19 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Apr 2007 00:19:19 +0000 (00:19 +0000)
2007-04-29  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
        in the PWG "custom" namespace as custom. Add a link to
        the spec in the docs.  (#426416, Andreas Guelzow)

svn path=/trunk/; revision=17718

ChangeLog
gtk/gtkpapersize.c

index 09f5c69966ddd3bfd4764fa58a83267f04e8dbb0..8a9b80b20ef7e7c56e5f7f9880a2b82ee8735a53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-29  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
+       in the PWG "custom" namespace as custom. Add a link to 
+       the spec in the docs.  (#426416, Andreas Guelzow)
+
 2007-04-29  Matthias Clasen <mclasen@redhat.com>
 
        * gtk/gtkprintoperation.c (gtk_print_operation_run): Document
index c5613275ab36cd25f74817d2041e444ea020c146..c0045dc3df35ab31c3e315caa279ef77ea524b71 100644 (file)
@@ -193,7 +193,7 @@ gtk_paper_size_new_from_info (const PaperInfo *info)
  * @name: a paper size name, or %NULL
  * 
  * Creates a new #GtkPaperSize object by parsing a 
- * PWG 5101.1-2002 PWG <!-- FIXME link here -->
+ * <ulink url="ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf">PWG 5101.1-2002</ulink>
  * paper name. 
  *
  * If @name is %NULL, the default paper size is returned,
@@ -223,6 +223,8 @@ gtk_paper_size_new (const gchar *name)
       size->height = height;
       size->name = short_name;
       size->display_name = g_strdup (short_name);
+      if (strncmp (short_name, "custom", 6) == 0)
+        size->is_custom = TRUE;
     }
   else
     {